﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using engine.frmModel;

namespace engine.frmModel
{
    class tdhString : SampleObject
    {
        public String data
        {
            get;
            set;
        }
        public tdhString()
        {
            frm = new frmString();
        }
        public tdhString(Fact goal)
        {
            frm = new frmString(goal);
        }
        
        public Boolean CheckCondition(String _operator,SampleObject item){
            tdhString temp = (tdhString)item;
            if (this.data == null || temp.data == null)
                return false;
            return data.Equals(temp.data);
        }

        public override string ToString()
        {
            return data;
        }
    }
}
